<template>
  <div>
    <Bread></Bread>

    <div v-html="str"></div>
    <button @click="test">测试</button>

    <router-link to="/classlist">调一下</router-link>
  </div>
</template>

<script>
import { Bread } from "@/components";
export default {
  components: { Bread },
  data() {
    return {
      str: ""
    };
  },
  methods: {
    test() {
      this.str = `<h1 id="gg">Simba</h1>`;
      this.$nextTick(() => {
        var gg = document.getElementById("gg");
        console.log(gg);
        gg.innerHTML = "Ace";
      });
    }
  }
};
</script>

<style>
</style>
